import {
  mapState,
  mapMutations
} from 'vuex'
export const mixinParams = {
  data () {
    return {
      workspaceFlag: false
    }
  },
  computed: {
    ...mapState([
      'workspaceId'
    ])
  },
  watch: {
    workspaceId: {
      handler: function (val) {
        this.workspaceFlag = true
      },
      deep: true
    }
  },
  methods: {
    ...mapMutations([
      'pd_updateWorkspaceId'
    ])
  }
}
